<template>
    <div>
        {{form.name}}
        {{count}}
        <button @click="change">修改</button>
    </div>
</template>

<script>
import axios from '../http/axios'
import { reactive, ref } from 'vue'
    export default {
        setup(){
            let form=reactive({'name':'ccc','age':18})
            let count=ref('234')
            let change=()=>{
                form.name='程立伟'
                count.value='22'
            }
            axios('test','get').then(res=>{
                console.log(res)
            })
          
            return{
            form,
            count,
            change
        }
        },
        
        
        
    }
</script>

<style scoped>

</style>